package Dao.daoImpl;

import Controller.UserController;
import Dao.empDao;
import Model.Emp;

import java.util.Arrays;

public class EmpDaoImpl implements empDao {
    /**
     * 数据访问层 添加员工信息
     *
     * @param emp
     * @param user
     */
    @Override
    public void addEmpDao(Emp[] emp, Emp user, int len) {

        emp[UserController.num++] = user;
//        for (int i = 0; i < len; i++) {
//            System.out.println("emp[i].toString() = " + emp[i].toString());
//        }
//        System.out.println("Arrays.toString(emp) = " + Arrays.toString(emp));
    }
}
